package com.bxj.wxtt.filter;

//import com.ifeng.bo.UserProfileBO;


public class ClientInfo {
	//cookie中信息
	private String sessionid;

	//sessionid取得的user
//	private UserProfileBO user;

	//X-Client中的信息
	private String xClient;
	private String imei; // 手机串号
	private String imsi; // sim卡号
	private String mac; // 手机mac地址
	private String phoneModel;//ua 手机型号
	private String systemVersion; // 系统版本
	private String screenSize;//屏幕大小
	private String cellId;//基站 cid_lac
	private String version;// 软件版本号
	private String rootPath; // 手机根路径
	private String skin;
	private String rn;
	private String tdcn;

	private Integer platformId;// 系统平台号
	private Integer mainVersion;// 主版本号
	private Integer subVersion;// 次版本号
	private Integer channel;// 渠道号

	private Integer platformGroupId;//平台组信息
	private Integer apiType;//api版本

	private Integer realVersion;//用于显示版本号的数字格式，如6.2.20.0，该字段值为220
	
	private String visitor; // 游客名
	 
	public String getVisitor() {
		return visitor;
	}

	public void setVisitor(String visitor) {
		this.visitor = visitor;
	}

	public String getSessionid() {
		return sessionid;
	}

	public void setSessionid(String sessionid) {
		this.sessionid = sessionid;
	}

//	public UserProfileBO getUser() {
//		return user;
//	}
//
//	public void setUser(UserProfileBO user) {
//		this.user = user;
//	}

	public String getxClient() {
		return xClient;
	}

	public void setxClient(String xClient) {
		this.xClient = xClient;
	}

	public String getImei() {
		return imei;
	}

	public void setImei(String imei) {
		this.imei = imei;
	}

	public String getImsi() {
		return imsi;
	}

	public void setImsi(String imsi) {
		this.imsi = imsi;
	}

	public String getMac() {
		return mac;
	}

	public void setMac(String mac) {
		this.mac = mac;
	}

	public String getPhoneModel() {
		return phoneModel;
	}

	public void setPhoneModel(String phoneModel) {
		this.phoneModel = phoneModel;
	}

	public String getSystemVersion() {
		return systemVersion;
	}

	public void setSystemVersion(String systemVersion) {
		this.systemVersion = systemVersion;
	}

	public String getScreenSize() {
		return screenSize;
	}

	public void setScreenSize(String screenSize) {
		this.screenSize = screenSize;
	}

	public String getCellId() {
		return cellId;
	}

	public void setCellId(String cellId) {
		this.cellId = cellId;
	}

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public String getRootPath() {
		return rootPath;
	}

	public void setRootPath(String rootPath) {
		this.rootPath = rootPath;
	}

	public String getSkin() {
		return skin;
	}

	public void setSkin(String skin) {
		this.skin = skin;
	}

	public String getRn() {
		return rn;
	}

	public void setRn(String rn) {
		this.rn = rn;
	}

	public String getTdcn() {
		return tdcn;
	}

	public void setTdcn(String tdcn) {
		this.tdcn = tdcn;
	}

	public Integer getPlatformId() {
		return platformId;
	}

	public void setPlatformId(Integer platformId) {
		this.platformId = platformId;
	}

	public Integer getMainVersion() {
		return mainVersion;
	}

	public void setMainVersion(Integer mainVersion) {
		this.mainVersion = mainVersion;
	}

	public Integer getSubVersion() {
		return subVersion;
	}

	public void setSubVersion(Integer subVersion) {
		this.subVersion = subVersion;
	}

	public Integer getChannel() {
		return channel;
	}

	public void setChannel(Integer channel) {
		this.channel = channel;
	}


	public Integer getApiType() {
		return apiType;
	}

	public void setApiType(Integer apiType) {
		this.apiType = apiType;
	}

	public Integer getRealVersion() {
		setRealVersion(getMainVersion() * 100 + getSubVersion());
		return this.realVersion;
	}

	private void setRealVersion(Integer realVersion) {
		this.realVersion = realVersion;
	}
	
	public Integer getPlatformGroupId() {
		return platformGroupId;
	}

	public void setPlatformGroupId(Integer platformGroupId) {
		this.platformGroupId = platformGroupId;
	}

	@Override
	public String toString() {
		return "ClientInfo [sessionid=" + sessionid + ", user=" //+ user
				+ ", xClient=" + xClient + ", imei=" + imei + ", imsi=" + imsi
				+ ", mac=" + mac + ", phoneModel=" + phoneModel
				+ ", systemVersion=" + systemVersion + ", screenSize="
				+ screenSize + ", cellId=" + cellId + ", version=" + version
				+ ", rootPath=" + rootPath + ", skin=" + skin + ", rn=" + rn
				+ ", tdcn=" + tdcn + ", platformId=" + platformId
				+ ", mainVersion=" + mainVersion + ", subVersion=" + subVersion
				+ ", channel=" + channel + ", platformGroupId="
				+ platformGroupId + ", apiType=" + apiType + ", realVersion="
				+ realVersion + ", visitor=" + visitor + "]";
	}

	
}
